package com.njwb.day15.zqzb.job.Test01;

public class Phone {
    private String caller;
    private String called;
    private int type;
    private  int time;

    public String getCaller() {
        return caller;
    }

    public void setCaller(String caller) {
        this.caller = caller;
    }

    public String getCalled() {
        return called;
    }

    public void setCalled(String called) {
        this.called = called;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
    public Phone(String caller,String called,int type,int time){
        this.caller = caller;
        this.called = called;
        this.type = type;
        this.time = time;
    }
    @Override
    public String toString() {
        return "caller='" + caller + '\'' +
                ", called='" + called + '\'' +
                ", type=" + type +
                ", time=" + time + "\n";
    }

}
